import 'package:frametrim/utility/SpUtils.dart';

class DataServer {
  //用户token
  static String mUserToken = "USER_TOKEN";

  //政府端  5   个人  3
  static String mPlatform = "PLATFORM";
  static String mPhone = "PHONE";

  //劳务id
  static String mLaborId = "LABORID";

  //用户id
  static String mUserId = "USERID";

  //农民工   项目经理/总监理工程师  角色
  static String mRoleIds = "ROLEIDS";

  //账号权限
  static String mAccountLimits = "ACCOUNTLIMITS";

  //身份证号码
  static String idCardNum = "IDCARDNUM";

  //登录账号  0 个人账号   1政府账号
  static String mLoginType = "LoginType";

  static setmLoginType(String? type) {
    SpUtils.getInstance().saveValue(mLoginType, type);
  }

  static setmUserToken(String? token) {
    SpUtils.getInstance().saveValue(mUserToken, token);
  }

  static setmPlatform(String platform) {
    SpUtils.getInstance().saveValue(mPlatform, platform);
  }

  static setmPHONE(String? phone) {
    SpUtils.getInstance().saveValue(mPhone, phone);
  }

  static setmLaborId(String? laborid) {
    SpUtils.getInstance().saveValue(mLaborId, laborid);
  }

  static setmUserId(String? userid) {
    SpUtils.getInstance().saveValue(mUserId, userid);
  }

  static setmRoleIds(String? roleids) {
    SpUtils.getInstance().saveValue(mRoleIds, roleids);
  }

  static setmAccountLimits(String? accountLimits) {
    SpUtils.getInstance().saveValue(mAccountLimits, accountLimits);
  }

  static setidCardNum(String? idcardnum) {
    SpUtils.getInstance().saveValue(idCardNum, idcardnum);
  }
}
